package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.ShopCartEntity;
import com.kws.merchant.domain.po.DevicePo;
import com.kws.merchant.domain.po.ShopCartPo;
import com.kws.merchant.domain.vo.ShopCartVo;
;


/**
 * @author : zhangbenting
 * @date : 2024/10/31 20:07
 * @Version: 1.0
 */
public interface ShopCartService extends IService<ShopCartEntity> {

    Page<ShopCartVo> getShopCartList(ShopCartPo shopCartP);

    boolean addShopCartGoods(ShopCartPo shopCartPo);

    /**
     * 购物车加购人数
     * @param userId
     * @param time
     * @return
     */
    Double merchantShopCartByUserAndTime(Long userId, String time);

    /**
     * 总加购人数
     * @param userId
     * @return
     */
    Double countShopCartByUser(Long userId);
}
